/*
 * @Author: xfworld
 * @Date: 2020-04-20 15:35:07
 * @LastEditors: xfworld
 * @LastEditTime: 2020-05-07 10:40:21
 * @Description: 
 */
var execute = require("cordova/exec");

var zebra = {
    softwareTriggerStart: function() {
        return execute(null, null, 'ZebraScannerPlugin', 'softwareTriggerStart', []);
    },
    softwareTriggerStop: function() {
        return execute(null, null, 'ZebraScannerPlugin', 'softwareTriggerStop', []);
    },
    nativeListen: function(res, err) {
        return execute(res, err, 'ZebraScannerPlugin', 'listen', []);
    },
    nativeRelease: function() {
        return execute(null, null, 'ZebraScannerPlugin', 'release', []);
    },
    nativeClaim: function() {
        return execute(null, null, 'ZebraScannerPlugin', 'claim', []);
    }
};

module.exports = zebra;